217
a:4:{s:8:"template";a:2:{s:54:"E:/xampp/htdocs/rbac/Admin/Tpl/Authority/roleList.html";b:1;s:29:"../Common/head_authority.html";b:1;}s:9:"timestamp";i:1522590158;s:7:"expires";i:1522590161;s:13:"cache_serials";a:0:{}}<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>权限</title>
    <link href="http://localhost/rbac/Admin/Tpl/Public/css/bootstrap.min.css" type="text/css" rel="stylesheet"/>
    <link href="http://localhost/rbac/Admin/Tpl/Public/css/admin-authority.css" type="text/css" rel="stylesheet"/>
    <script src="http://localhost/rbac/Admin/Tpl/Public/js/jquery-3.2.1.min.js"></script>
    <script src="http://localhost/rbac/Admin/Tpl/Public/js/bootstrap.min.js"></script>
</head><body>
<div class="container-fluid">
    <div class="row" style="margin: 20px 0px;">
        <b>角色列表</b>
        <a href="http://localhost/rbac/admin.php?c=Authority&m=addRole" style="float: right;">添加角色</a>
    </div>
    <table class="table table-hover">
        <thead>
        <tr>
            <th>角色</th>
            <th>操作</th>
        </tr>
        </thead>

                <tr>
            <td class="col-sm-offset-1 col-md-offset-1 col-lg-offset-1 col-md-offset-1 col-sm-5 col-md-5 col-lg-5">超级管理员</td>
            <td class="col-sm-5 col-md-5 col-lg-5">
                <a href="http://localhost/rbac/admin.php?c=Authority&m=setRole&id=1&name=超级管理员" class="btn btn-warning btn-xs">设置权限</a>
                <a href="http://localhost/rbac/admin.php?c=Authority&m=editRole&id=1" class="btn btn-success btn-xs">编辑</a>
                <button type="button" onclick="category_del('1')" class="btn btn-danger btn-xs">删除</button>
            </td>
        </tr>
                <tr>
            <td class="col-sm-offset-1 col-md-offset-1 col-lg-offset-1 col-md-offset-1 col-sm-5 col-md-5 col-lg-5">管理员</td>
            <td class="col-sm-5 col-md-5 col-lg-5">
                <a href="http://localhost/rbac/admin.php?c=Authority&m=setRole&id=2&name=管理员" class="btn btn-warning btn-xs">设置权限</a>
                <a href="http://localhost/rbac/admin.php?c=Authority&m=editRole&id=2" class="btn btn-success btn-xs">编辑</a>
                <button type="button" onclick="category_del('2')" class="btn btn-danger btn-xs">删除</button>
            </td>
        </tr>
            </table>
    <div class="col-sm-12 col-md-12 col-lg-12 pagination">
        <a href="#" class="pagination-info">共条<b>2</b>记录，本页显示<b>1-2</b></a>&nbsp;
        <a href="#" class="pagination-info">1/1</a>&nbsp;
        <a href="http://localhost/rbac/admin.php" class="pagination-link">首页</a>
        <a href="http://localhost/rbac/admin.php?c=Authority&m=roleList&page=0" class="pagination-link">上一页</a>
        <a href="http://localhost/rbac/admin.php?c=Authority&m=roleList&page=2" class="pagination-link">下一页</a>
        <a href="http://localhost/rbac/admin.php?c=Authority&m=roleList&page=1" class="pagination-link">尾页</a>&nbsp;&nbsp;
        <input type="text" class="jumpPage" id="jumpPage"/>
        <a href="#" class="pagination-link" id="pagination-jump">跳转</a>
    </div>
</div>

<script type="text/javascript">

    $('#pagination-jump').click(function(){
        var page = $('#jumpPage').val();
        location.href = './index.php?c=Authority&m=roleList&page='+page;
    })
    function category_del(cid){
        if(confirm("确定删除该栏目吗？")){
            location.href = "./admin.php?c=Category&m=del&cid="+cid;
        }
    }
</script>

</body>
</html>